package com.cn.bopu.common.upms.commmon.interceptor;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 拦截器
 *
 * @Author 史绍波
 * @Date 2020/4/11 21:29
 * @Description
 */
public class ReqInterceptor extends HandlerInterceptorAdapter {


    /**
     * method note
     *
     * @param request
 	 * @param response
 	 * @param handler
     * @return
     * @throws Exception
     * @author 史绍波
     * @date 2020/4/11 22:19
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        System.out.println("Interceptor preHandler method is running !");
        return super.preHandle(request, response, handler);
    }
}
